package com.example.studentmanager.model;

import com.example.studentmanager.model.extension.StuCouGrade;
import com.example.studentmanager.model.extension.StuCouGrade;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;


@Component
public class Student extends StuCouGrade implements Serializable{
    private static final long serialVersionUID = 1L;
    private String stuname;
    private String phone;
    private String password;
    private Date birth;

    private char sex;
    private String department;
    private String  classname;
    private String major;
    private Integer stunum;

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuname='" + stuname + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", birth=" + birth +
                ", sex=" + sex +
                ", department='" + department + '\'' +
                ", classname='" + classname + '\'' +
                ", major='" + major + '\'' +
                ", stunum=" + stunum +
                '}';
    }

    public Student(String stuname, String phone, String password, Date birth, char sex, String department, String classname, String major, Integer stunum) {
        this.stuname = stuname;
        this.phone = phone;
        this.password = password;
        this.birth = birth;
        this.sex = sex;
        this.department = department;
        this.classname = classname;
        this.major = major;
        this.stunum = stunum;
    }

    public Student() {

    }


    public String getStuName() {
        return stuname;
    }

    public void setStuName(String stuName) {
        this.stuname = stuName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Integer getStunum() {
        return stunum;
    }

    public void setStunum(Integer stunum) {
        this.stunum = stunum;
    }
}
